<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/head.jsp"%>
<%@ include file="/common/left.jsp"%>
<%@ include file="/common/righthead.jsp"%>

<script>menuSelected = "FUN002";</script>

<div class="content">
	<div class="pageTitle">
		<s:property value="%{getText('SBA_SCHOOL_CHECKING_FORM_ENTRY')}" />
	</div>

	<div>
		<table id="contentTable">
			<tr>
				<th>名称</th>
				<th>授权</th>
				<th>操作</th>
			</tr>

			<s:iterator value="allRoleList">
				<tr>
					<td>${name}</td>
					<td>${authNames}</td>
					<td>&nbsp;
						<security:authorize ifAnyGranted="ROLE_浏览角色">
							<security:authorize ifNotGranted="ROLE_修改角色">
								<a href="role!input.action?id=${id}">查看</a>&nbsp;
							</security:authorize>
						</security:authorize>

						<security:authorize ifAnyGranted="ROLE_修改角色">
							<a href="role!input.action?id=${id}" id="editLink-${name}">修改</a>&nbsp;
							<a href="role!delete.action?id=${id}" id="deleteLink-${name}">删除</a>
						</security:authorize>
					</td>
				</tr>
			</s:iterator>
		</table>
	</div>

	<div>
		<security:authorize ifAnyGranted="ROLE_修改角色">
			<a href="role!input.action">增加新角色</a>
		</security:authorize>
	</div>
</div>
<%@ include file="/common/foot.jsp" %>